package org.zzz.hepotaiya.container.guice;

import org.zzz.hepotaiya.container.IContainer;

import com.google.inject.Injector;

public class GuiceContainerWrapper implements IContainer {

	Injector injector;
	
	public void setInjector(Injector injector) {
		this.injector = injector;
	}
	
	public Object getObject(String componentName) throws Exception {
		return null;
	}

	public Object getObject(Class clazz) throws Exception {
		return this.injector.getInstance(clazz);
	}
}
